package com.buka.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.buka.domain.ResponseResult;
import com.buka.dto.AddArticleDto;
import com.buka.pojo.Article;

/**
* @author 26755
* @description 针对表【article(文章表)】的数据库操作Service
* @createDate 2024-03-20 15:46:46
*/
public interface ArticleService extends IService<Article> {
    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult add(AddArticleDto article);

    ResponseResult list(int pageNum, int pageSize, String title, String summary);

    ResponseResult getArticleById(int id);

    ResponseResult updateArticleById(Article article);
}
